const { insert } = require('../utils/mysqlsApi.js')

module.exports = {
	type:'post',
	methods: async ctx => {
		let data =  ctx.request.body
		data.birthday = new Date()
		ctx.body = {data:await insert('mytest', data)}
	} 
}